<?php

/**
 * pilotCoreCapital actions.
 *
 * @package    sf_sandbox
 * @subpackage pilotCoreCapital
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class pilotCoreCapitalActions extends sfActions
{
    public function executeCoreCapitalHints()
    {
        $c = new Criteria();
        $c->add(MlmArticlePeer::ARTICLE_TYPE, Globals::ARTICLE_HINTS);
        $c->addDescendingOrderByColumn(MlmArticlePeer::CREATED_ON);
        $this->mlmArticles = MlmArticlePeer::doSelect($c);
    }
    public function executeCoreCapitalHorns()
    {
        $c = new Criteria();
        $c->add(MlmArticlePeer::ARTICLE_TYPE, Globals::ARTICLE_HORNS);
        $c->addDescendingOrderByColumn(MlmArticlePeer::CREATED_ON);
        $this->mlmArticles = MlmArticlePeer::doSelect($c);
    }
    public function executeCoreCapitalLearnTestimony()
    {
        $c = new Criteria();
        $c->add(MlmArticlePeer::ARTICLE_TYPE, Globals::ARTICLE_TESTIMONY);
        $c->addDescendingOrderByColumn(MlmArticlePeer::CREATED_ON);
        $this->mlmArticles = MlmArticlePeer::doSelect($c);
    }
    public function executeCoreCapitalNews()
    {
        $c = new Criteria();
        $c->add(MlmArticlePeer::ARTICLE_TYPE, Globals::ARTICLE_NEWS);
        $c->addDescendingOrderByColumn(MlmArticlePeer::CREATED_ON);
        $this->mlmArticles = MlmArticlePeer::doSelect($c);
    }
}